package com.example.vp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.common.annotation.AutoFill;
import com.common.constant.OperationType;
import com.example.vp.domian.enetity.Collect;
import com.example.vp.domian.enetity.CollectDetails;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CollectMapper extends BaseMapper<Collect> {
    @Insert("insert into collect_video (id, collect_id, video_id) VALUES (#{id},#{collectId},#{videoId})")
    @AutoFill(OperationType.INSERT)
    public void insertCollect(Long collectid ,Long videoId);
}
